<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<title>Homepage Utente</title>
	 <link rel="stylesheet" type="text/css" href="../styles/style.css" />
</h:head>
<h:body>
<div id="container">
<div id="box">
<header class="banner">
<span id="titoloPagina"> Benvenuto Sognatore </span>
</header>    
<div id="externalborder1">
<p:spacer height="70px" />

<h:form>

<h:panelGroup>
			<div id="infoAgg" style="text-align: center;">
			<h:outputText value="Hai creato con successo un Sogno"  rendered="#{param.viaggioCreato}"/><br/>
			<h:outputText value="Hai effettuato con successo il pagamento!"  rendered="#{param.pagamentoEffettuato}"/><br/>
			<h:outputText value="Anche tu possiedi questo Sogno ora!"  rendered="#{param.partecipaViaggio}"/><br/>
			</div>
			</h:panelGroup>
			<p:spacer height="40px" />
<div id="columnBox" style="margin:0px auto; width:70%">
		
			<div id="column1" style="float:left; margin:0; width:33%;">
				<div id="registerButton">
				<h:commandLink id="registerlink" action="#{creaViaggio.getAllCitta}">
				<div class="button" id="register">
				Realizza il tuo Sogno
				</div>
				</h:commandLink>
				</div>
			</div> 

			<div id="column2" style="float:left; margin:0;width:33%;">
				<div id="registerButton">
				<h:commandLink id="loginlink" action="#{pagamentoPP.getMieiViaggi}">
				<div class="button" id="register">
				I miei Sogni
				</div>
				</h:commandLink>
				</div>
			</div>

			<div id="column3" style="float:left; margin:0;width:33%;">
			<div id="registerButton">
				<a id="visualizzalink" href="ricercaViaggio.xhtml">
					<div class = "button" id = "visualizza">
						Condividi un Sogno
					</div>
				</a>
				</div>
			</div>
			
		</div>
</h:form>
	</div>
</div>
<div id="push">
</div>
</div>
<div id="footer">
<h:form>
<div id="logoutExt">
<h:commandLink id="logoutlink" action="#{logoutBean.logout}">
<div class="button" id="logout">
Logout
</div>
</h:commandLink>
</div>

</h:form>
</div>


   </h:body>
</html>